/*
 * Powered By Rubyliu
 * QQ:876181
 * Since 2012 - 2013
 */

package com.henme.crm.entity.product;

import com.henme.crm.util.entity.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author Ruby liu
 * @version 1.0
 * @since 1.0
 */

public class Product extends BaseEntity{
	//columns START
	private Long id;
	private String name;
	private String number;
	private String description;
	private Long categoryid;
	private Float price;
	private Date createTime;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;

    private ProductCategory     productCategory;

    public ProductCategory getProductCategory() {
        return productCategory;
    }

    public void setProductCategory(ProductCategory productCategory) {
        this.productCategory = productCategory;
    }

    public void setName(String value) {
		this.name = value;
	}
	
	public String getName() {
		return this.name;
	}
	public void setNumber(String value) {
		this.number = value;
	}
	
	public String getNumber() {
		return this.number;
	}
	public void setDescription(String value) {
		this.description = value;
	}
	
	public String getDescription() {
		return this.description;
	}

    public Long getCategoryid() {
        return categoryid;
    }

    public void setCategoryid(Long categoryid) {
        this.categoryid = categoryid;
    }

    public void setPrice(Float value) {
		this.price = value;
	}
	
	public Float getPrice() {
		return this.price;
	}
	public void setCreateTime(Date value) {
		this.createTime = value;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setUpdateTime(Date value) {
		this.updateTime = value;
	}
	
	public Date getUpdateTime() {
		return this.updateTime;
	}

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}

